import { DICT } from './api'
import { METHOD, request } from '@/utils/request'

export async function dictDetail(id) {
  return request(DICT + '/queryOne', METHOD.GET, { id: id })
}

export async function dictPage(data) {
  return request(DICT + '/page', METHOD.POST, data)
}

export async function saveOrUpdateDict(data) {
  return request(DICT + '/saveOrUpdate', METHOD.POST, data)
}

export default { dictDetail, dictPage, saveOrUpdateDict }